package cn.gtv.sdk.dcas.api;

import android.content.Context;
import android.text.TextUtils;

public class AESEncryptor implements IEncryptor{

    private Context context;

    public AESEncryptor(Context context){
        this.context=context;
    }
    @Override
    public String encrypt(String orgData) {
        String key=EncryptionKeyStorageManager.getKey(context);
        if (TextUtils.isEmpty(key)){
            return orgData;
        }
        String e= AESEncryptUtils.encrypt(key,orgData,"");
        return e;
    }
}
